let apples = ['🍎', '🍏'];
let [redApple, greenApple] = apples;  // <-- here

console.log( redApple );    //=> 🍎
console.log( greenApple );  //=> 🍏;

const product = {
    id: 'ak001',
    name: 'ak47'
  }
  
  // 通过动态key进行解构赋值
  const extractKey = 'name';
  const { [extractKey]: data } = product;
  
  console.log(extractKey,data); // name: ak47